const HttpException = require('../exceptions/http_expetion')

const noMatchMid =(req,res,next)=>{
    // res.status(404)
    // .json({
    //     code:0,
    //     message:'router url not found!!!'
    // })

    const noMatchMidError = new HttpException(404,'访问路径不匹配','router url not found')
    next(noMatchMidError)
}


module.exports = noMatchMid